Release 10.1A: OpenEdge Development:
ADM Reference
initPages
Procedure that initializes one or more pages, which are not yet being viewed, in order to establish links or to prepare for the pages being viewed.
Location: containr.p Parameters:INPUT pcPageList AS CHARACTERA comma-separated list of page numbers.
Notes:
- The initPages procedure can be run by application code to initialize more pages than those that are initially viewed, either in order to reduce the startup time for pages later on, or to communicate with objects on pages not yet selected.
- If a SmartObject on one page in a SmartContainer is a link target of a SmartObject on another page other than page 0, the AppBuilder detects this during the design process and automatically generates an appropriate call to initPages as part of adm–create–objects. This assure that when the dependent page is initialized, the pages it depends on are initialized as well.
- Ordinarily only objects on page 0 and on the StartPage (if any) are created when the SmartContainer is created. Objects on other pages are created when the page they are on is first selected.
- In some cases a SmartDataObject can be an Update Target for a SmartDataViewer or Browser, which can be on a later page in the Container. This might cause more pages to be created at startup than is desired. If this is the case, the design time Update link can be removed, and created instead by application code in a local createObjects, as in the second example below.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |